// store/myModule.js
export default {
    state: {
        plat_info: {},
    },
    mutations: {
        setPlatInfo(state, data) {
			state.plat_info = Object.assign({}, state.plat_info, data);
        },
		setPlatInfoAssign(state, data) {
			state.plat_info = data
		},
    },
    actions: {
        //更新平台信息
        uploadPlatInfo({dispatch,commit,state},data){
        	commit('setPlatInfoAssign',data)
        	uni.setStorageSync('plat', JSON.stringify(state.plat_info))
        },
    }
};